< previous page page_118 next page >

Page 118
0118-01.jpg
Figure 6.7
Shortcuts keys have been assigned
to several of the File menu's functions.
You can assign any unused shortcut key to any menu item, but you should try to make your program use the same ''standard" keys that are used in many Windows programs. Some of these keys are listed in Table 6.2. As examples, the "Description" column explains what these keys do when you're working within Visual Basic itself.
Table 6.2 Commonly Used Shortcut Keys Speed Access to Program Tasks
Menu ItemShortcut KeyDescription
Edit, CutCtrl+XRemoves selected text from its current location and copies it to the Clipboard.
Edit, CopyCtrl+CMakes a copy of the selected text in the Clipboard.
Edit, PasteCtrl+VPastes the contents of the Clipboard to the active document.
Edit, UndoCtrl+ZUndoes the last change.
Edit, FindCtrl+FOpens the Find dialog box to allow the users to search for something (text, for example).
File, NewCtrl+NCreates a new document.
File, OpenCtrl+OOpens a dialog box to allow the users to select a document to open.
File, SaveCtrl+SSaves the current document.
File, PrintCtrl+POpens the Print dialog box to allow selection of items to be printed.

tip.gif
As with access keys, you should try to make the shortcut key correspond to the first letter of the item namefor example, Ctrl+P for Print. Users can remember the shortcuts more easily this way. To avoid confusing your users, you should use the standard shortcut keys listed in Table 6.2 whenever possible.

 
< previous page page_118 next page >